@import '@/styles/color';
@import '@/styles/token';

.container {
  // 整体滚动容器
  // min-height: 100vh;

  // 输入框区域样式
  .inputSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 0 20px;
    overflow-y: auto; // 允许输入框区域内部滚动

    .title {
      font-size: 24px;
      font-weight: 400;
      //color: @BLANK04;
      margin: 0 auto 45px;
      width: 780px;
      text-align: center;
    }

    .textarea {
      width: 780px;
      margin-bottom: 30px;
    }

    .recommend {
      width: 780px;
      max-height: 150px;
      overflow: hidden;
      gap: @margin;

      .recommend-item {
        line-height: 20px;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: @fontSize;
        max-width: 100%;
        color: @colorTextSecondary;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        background-color: @colorBgLayout;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;

        .icon {
          width: 20px;
          height: 20px;
          display: inline-block;
        }
      }
    }
  }

  // 推荐区域样式
  .recommendSection {
    // width: 100%;
    // flex: 1; // 占用剩余空间，自然形成约360px高度
    // overflow-y: auto; // 允许推荐区域内部滚动
    width: 830px;

    .wrapper {
      width: 100%;
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 @paddingXs;
      // background: @WHITE;
      // height: 100%;
    }
  }
}

@media (max-width: 768px) {
  .container {
    .inputSection {
      padding: 48px 12px 16px;

      .textarea {
        width: 100%;
      }

      .recommend {
        width: 100%;
      }
    }

    .recommendSection {
      .wrapper {
        width: 100%;
        padding: 0 12px;
      }
    }
  }
}
